import request from '@/utils/request'


export function repairWorkOrderList(query) {
  return request({
    url: '/hawk-eye/repair-work-order/page',
    method: 'get',
    params: query
  })
}

export function repairWorkOrderDetail(id) {
  return request({
    url: '/hawk-eye/repair-work-order/detail/' + id,
    method: 'get'
  })
}

export function approveRepairWorkOrder(data) {
  return request({
    url: '/hawk-eye/repair-work-order/approve',
    method: 'put',
    data: data
  })
}

export function rejectRepairWorkOrder(data) {
  return request({
    url: '/hawk-eye/repair-work-order/reject',
    method: 'put',
    data: data
  })
}

export function executeRepairApiByWorkOrder(data) {
  return request({
    url: '/hawk-eye/repair-work-order/execute-repair',
    method: 'post',
    data: data
  })
}

export function removerRepairWorkOrder(id) {
  return request({
    url: '/hawk-eye/repair-work-order/remove/' + id,
    method: 'delete'
  })
}
